﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.User
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string User_ID = strid;
                    ShowInfo(User_ID);
                }
            }
        }

        private void ShowInfo(string User_ID)
        {
            BLL.UserList bll = new BLL.UserList();
            Model.UserList model = bll.GetModel(User_ID);
            this.lblUser_ID.Text = model.User_ID;
            this.lblUser_Name.Text = model.User_Name;
            this.lblUser_Phone.Text = model.User_Phone;
            this.lblUser_Email.Text = model.User_Email;
            this.lblUser_Pwd.Text = model.User_Pwd;
            this.lblCheck_Code.Text = model.Check_Code;
            this.lblUser_TrueName.Text = model.User_TrueName;
            this.lblUser_Sex.Text = model.User_Sex.ToString();
            this.lblUser_Address.Text = model.User_Address;
            this.lblUser_Image.Text = model.User_Image;
            this.lblUser_Money.Text = model.User_Money.ToString();
            this.lblCreated_Date.Text = model.Created_Date.ToString();
            this.lblLogin_Date.Text = model.Login_Date.ToString();

        }
    }
}